package com.hluck.goodweatherapp.data.bean;

import java.util.List;

/**
 * @Author： LJH
 * @Time： 2023/12/22
 * @description：
 */
public class LocationData {
    private String code;
    private List<Location> location;
    private Refer refer;

    // Getters and setters

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<Location> getLocation() {
        return location;
    }

    public void setLocation(List<Location> location) {
        this.location = location;
    }

    public Refer getRefer() {
        return refer;
    }

    public void setRefer(Refer refer) {
        this.refer = refer;
    }

    public static class Location {
        private String name;        //城市名称
        private String id;          //城市ID
        private String lat;         //城市纬度
        private String lon;         //城市经度
        private String adm2;        //城市的上级行政区划名称
        private String adm1;        //城市所属一级行政区域
        private String country;     //城市所属国家名称
        private String tz;          //城市所在时区
        private String utcOffset;   //城市目前与UTC时间偏移的小时数
        private String isDst;       //城市是否当前处于夏令时。1 表示当前处于夏令时，0 表示当前不是夏令时。
        private String type;        //城市的属性
        private String rank;        //评分
        private String fxLink;      //该地区的天气预报网页链接，便于嵌入你的网站或应用

        // Getters and setters

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        public String getLon() {
            return lon;
        }

        public void setLon(String lon) {
            this.lon = lon;
        }

        public String getAdm2() {
            return adm2;
        }

        public void setAdm2(String adm2) {
            this.adm2 = adm2;
        }

        public String getAdm1() {
            return adm1;
        }

        public void setAdm1(String adm1) {
            this.adm1 = adm1;
        }

        public String getCountry() {
            return country;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public String getTz() {
            return tz;
        }

        public void setTz(String tz) {
            this.tz = tz;
        }

        public String getUtcOffset() {
            return utcOffset;
        }

        public void setUtcOffset(String utcOffset) {
            this.utcOffset = utcOffset;
        }

        public String getIsDst() {
            return isDst;
        }

        public void setIsDst(String isDst) {
            this.isDst = isDst;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getRank() {
            return rank;
        }

        public void setRank(String rank) {
            this.rank = rank;
        }

        public String getFxLink() {
            return fxLink;
        }

        public void setFxLink(String fxLink) {
            this.fxLink = fxLink;
        }
    }

    public static class Refer {
        private List<String> sources; //原始数据来源，或数据源说明，可能为空
        private List<String> license; //数据许可或版权声明，可能为空

        // Getters and setters

        public List<String> getSources() {
            return sources;
        }

        public void setSources(List<String> sources) {
            this.sources = sources;
        }

        public List<String> getLicense() {
            return license;
        }

        public void setLicense(List<String> license) {
            this.license = license;
        }
    }
}
